import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/HomeView/index.vue')
  },
  {
    path: '/info',
    name: 'info',
    component: () => import('@/views/InfoView/index.vue')
  },
  {
    path: '/DailyInfo',
    name: 'DailyInfo',
    component: () => import('@/views/DailyInfo/index.vue')
  },
  {
    path: '/MobileDailyInfo',
    name: 'MobileDailyInfo',
    component: () => import('@/views/MobileDailyInfo/index.vue')
  },
  {
    path: '/DailyList',
    name: 'DailyList',
    component: () => import('@/views/DailyList/index.vue')
  },
  {
    path: '/FilesList',
    name: 'FilesList',
    component: () => import('@/views/FilesList/index.vue')
  },
  {
    path: '/DictionaryManage',
    name: 'DictionaryManage',
    component: () => import('@/views/DictionaryManage/index.vue')
  },
  {
    path: '/tablePage',
    name: 'tablePage',
    component: () => import('@/views/TablePageView/index.vue')
  },
  {
    path: '/MobileHomeView',
    name: 'MobileHomeView',
    component: () => import('@/views/MobileHomeView/index.vue')
  },
  {
    path: '/tablePage2',
    name: 'tablePage2',
    component: () => import('@/views/TablePageView2/index.vue')
  },
  {
    path: '/',
    name: 'Login',
    component: () => import('@/views/Login/index.vue')
  },
  {
    path: '/infoEntry',
    name: 'infoEntry',
    component: () => import('@/views/infoEntry/index.vue')
  },
  {
    path: '/proAdd',
    name: 'proAdd',
    component: () => import('@/views/proAdd/index.vue')
  },
  {
    path: '/collection',
    name: 'collection',
    component: () => import('@/views/collectionView/index.vue')
  },
  {
    path: '/person',
    name: 'person',
    component: () => import('@/views/person/index.vue')
  }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
